package com.pactera.rabbitmq.bean;

import java.io.Serializable;

/**
 * 推送数据消息BEAN
 *
 * @author: liqingdian
 **/
public class MessageInfo implements Serializable {

    private static final long serialVersionUID = -1485163309323214025L;
    /**
     * 消费者(队列)名称
     */
    private String queue;
    /**
     * 数据标签-用于区分是什么数据
     */
    private String tag;
    /**
     * 数据
     */
    private String data;
    /**
     * 失效时间
     */
    private Long expiration = 0L;

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }
}
